package com.ds.infrastructure.hyperspace.container.endpoint.entry;

import com.ds.infrastructure.hyperspace.common.Endpoint;
import com.ds.infrastructure.hyperspace.common.config.EntryNodeConfig;
import com.ds.infrastructure.hyperspace.container.internal.NettyContainer;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

/**
 * @author  Weishaoying
 */
@Slf4j
@Getter
public class EntryEndpointNode {

    private final NettyContainer nettyContainer;

    private final Endpoint endpoint;

    @Setter
    private volatile EntryNodeConfig entryNodeConfig;

    public EntryEndpointNode(NettyContainer nettyContainer,
            EntryNodeConfig entryNodeConfig, Endpoint endpoint) {
        this.nettyContainer = nettyContainer;
        this.entryNodeConfig = entryNodeConfig;
        this.endpoint = endpoint;
    }

}
